package com.webbei.Backstage.action;

import java.util.List;

import com.webbei.Backstage.service.BackstateSer;
import com.webbei.pojo.Products;

public class ProductList {
	private BackstateSer bao;
	private List<Products> products;
	private List<String> sellernames;
	public String execute(){
		products = bao.getAllProducts();
		sellernames = bao.getAllSellername();
		return "success";
	}
	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}
	public List<Products> getProducts() {
		return products;
	}
	public void setProducts(List<Products> products) {
		this.products = products;
	}
	public List<String> getSellernames() {
		return sellernames;
	}
	public void setSellernames(List<String> sellernames) {
		this.sellernames = sellernames;
	}
	
}
